// 导入二次封装axios
import koi from "@/utils/axios.ts";

// 统一管理接口
enum API {
  // 通过相关字查询tag
  GET_TAG = "/backstage/tag/getListByName",
  // 获取tag列表
  GET_TAG_LIST = "/backstage/tag",
  // 删除标签
  DELETE_TAG = "/backstage/tag"
}

export const getAllTag = (tag: any) => koi.get(API.GET_TAG + "/" + tag);
// 获取tag列表
export const getTagList = (data: any) => koi.get(API.GET_TAG_LIST, data);
// 删除标签
export const deleteTag = (ids: any) => koi.delete(API.DELETE_TAG, { data: ids });
